package com.epam.kulibaba.components.productDescription;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import com.epam.kulibaba.components.Component;

public class ProductDescription extends Component {
	public static final String ITEMDESCRIPTION = ".panel.corner.item-stats";
	
	
	@FindBy(css = ProductDescription.ITEMDESCRIPTION)
	private WebElement itemDescription;	
	

	public WebElement getItemDescription() {
		return itemDescription;
	}	
	
	public  ProductDescription getProductDescription(WebDriver driver) {
		ProductDescription itemDescription = PageFactory.initElements(driver,
				ProductDescription.class);		
		return itemDescription;
	}
}
